namespace = KSS
character_event = { id = KSS.601 #   
	title = "EVTTITLE_KSS.601"
	desc = "EVTDESC_KSS.601"
	picture = "GFX_evt_into_the_dungeon"
	is_triggered_only = yes
	
	option = { name = "EVTOPT_KSS.601_0"
		trigger = { OR = {
			has_global_flag = flag_blindfold_both_eyes_off
			has_global_flag = flag_blindfold_one_eye_off
			has_global_flag = flag_blindfold_both_eyes_on
			has_global_flag = flag_blindfold_one_eye_on
		} }
		clr_global_flag = flag_blindfold_both_eyes_off
		clr_global_flag = flag_blindfold_one_eye_off
		clr_global_flag = flag_blindfold_both_eyes_on
		clr_global_flag = flag_blindfold_one_eye_on
		character_event = { id = KSS.602 }
	}
	option = { name = "EVTOPT_KSS.601_1"
		trigger = { NAND = {
			has_global_flag = flag_blindfold_both_eyes_off
			has_global_flag = flag_blindfold_one_eye_off
		} }
		set_global_flag = flag_blindfold_both_eyes_off
		set_global_flag = flag_blindfold_one_eye_off
		clr_global_flag = flag_blindfold_both_eyes_on
		clr_global_flag = flag_blindfold_one_eye_on
		character_event = { id = KSS.602 }
	}
	option = { name = "EVTOPT_KSS.601_2"
		trigger = { NAND = {
			has_global_flag = flag_blindfold_both_eyes_on
			has_global_flag = flag_blindfold_one_eye_on
		} }
		clr_global_flag = flag_blindfold_both_eyes_off
		clr_global_flag = flag_blindfold_one_eye_off
		set_global_flag = flag_blindfold_both_eyes_on
		set_global_flag = flag_blindfold_one_eye_on
		character_event = { id = KSS.602 }
	}
	option = { name = "EVTOPT_KSS.601_3"
		trigger = { NAND = {
			has_global_flag = flag_blindfold_both_eyes_off
			has_global_flag = flag_blindfold_one_eye_on
		} }
		set_global_flag = flag_blindfold_both_eyes_off
		clr_global_flag = flag_blindfold_one_eye_off
		clr_global_flag = flag_blindfold_both_eyes_on
		set_global_flag = flag_blindfold_one_eye_on
		character_event = { id = KSS.602 }
	}
	option = { name = "EVTOPT_KSS.601_4"
		trigger = { NAND = {
			has_global_flag = flag_blindfold_both_eyes_on
			has_global_flag = flag_blindfold_one_eye_off
		} }
		clr_global_flag = flag_blindfold_both_eyes_off
		set_global_flag = flag_blindfold_one_eye_off
		set_global_flag = flag_blindfold_both_eyes_on
		clr_global_flag = flag_blindfold_one_eye_on
		character_event = { id = KSS.602 }
	}
}
character_event = { id = KSS.602 #   
	hide_window = yes #    ,    .      .
	is_triggered_only = yes
	immediate = { #         immediate,       
		#       -    .
		#  -  any_independent_ruler         
		#   .     any_playable_ruler,    any_independent_ruler
		
		any_playable_ruler = { #           
			if = { limit = { OR = { trait = blinded AND = { trait = blinded_one_out_l trait = blinded_one_out_r } } } #   
				if = { limit = { has_global_flag = flag_blindfold_both_eyes_off NOT = { has_character_modifier = blindfold_is_removed } } #   
					add_character_modifier = { name = blindfold_is_removed hidden = yes }
					remove_trait = blinded_one_out_l
					remove_trait = blinded_one_out_r
					remove_trait = blinded
					add_trait = blinded
				}
				if = { limit = { has_global_flag = flag_blindfold_both_eyes_on has_character_modifier = blindfold_is_removed } #   
					remove_character_modifier = blindfold_is_removed
					remove_trait = blinded_one_out_l
					remove_trait = blinded_one_out_r
					remove_trait = blinded
					add_trait = blinded
				}
				if = { limit = { NOR = { has_global_flag = flag_blindfold_both_eyes_off has_global_flag = flag_blindfold_both_eyes_on } } #    
					random_list = {
						50 = {
							if = { limit = { NOT = { has_character_modifier = blindfold_is_removed } }
								add_character_modifier = { name = blindfold_is_removed hidden = yes }
								remove_trait = blinded_one_out_l
								remove_trait = blinded_one_out_r
								remove_trait = blinded
								add_trait = blinded
							}
						}
						50 = { modifier = { factor = 0 AND = { is_female = yes religion_group = muslim } }
							if = { limit = { has_character_modifier = blindfold_is_removed }
								remove_character_modifier = blindfold_is_removed
								remove_trait = blinded_one_out_l
								remove_trait = blinded_one_out_r
								remove_trait = blinded
								add_trait = blinded
							}
						}
					}
				}
				
			}
			if = { limit = { AND = { trait = blinded_one_out_l NOT = { trait = blinded_one_out_r } } } # ,   
				if = { limit = { has_global_flag = flag_blindfold_one_eye_off NOT = { has_character_modifier = blindfold_is_removed } } #   
					add_character_modifier = { name = blindfold_is_removed hidden = yes }
					remove_trait = blinded_one_out_l
					add_trait = blinded_one_out_l
				}
				if = { limit = { has_global_flag = flag_blindfold_one_eye_on has_character_modifier = blindfold_is_removed } #   
					remove_character_modifier = blindfold_is_removed
					remove_trait = blinded_one_out_l
					add_trait = blinded_one_out_l
				}
				if = { limit = { NOR = { has_global_flag = flag_blindfold_one_eye_off has_global_flag = flag_blindfold_one_eye_on } } #    
					random_list = {
						50 = {
							if = { limit = { NOT = { has_character_modifier = blindfold_is_removed } }
								add_character_modifier = { name = blindfold_is_removed hidden = yes }
								remove_trait = blinded_one_out_l
								add_trait = blinded_one_out_l
							}
						}
						50 = { modifier = { factor = 0 is_female = no }
							if = { limit = { has_character_modifier = blindfold_is_removed }
								remove_character_modifier = blindfold_is_removed
								remove_trait = blinded_one_out_l
								add_trait = blinded_one_out_l
							}
						}
					}
				}
			}
			if = { limit = { AND = { NOT = { trait = blinded_one_out_l } trait = blinded_one_out_r } } # ,   
				if = { limit = { has_global_flag = flag_blindfold_one_eye_off NOT = { has_character_modifier = blindfold_is_removed } } #   
					add_character_modifier = { name = blindfold_is_removed hidden = yes }
					remove_trait = blinded_one_out_r
					add_trait = blinded_one_out_r
				}
				if = { limit = { has_global_flag = flag_blindfold_one_eye_on has_character_modifier = blindfold_is_removed } #   
					remove_character_modifier = blindfold_is_removed
					remove_trait = blinded_one_out_r
					add_trait = blinded_one_out_r
				}
				if = { limit = { NOR = { has_global_flag = flag_blindfold_one_eye_off has_global_flag = flag_blindfold_one_eye_on } } #    
					random_list = {
						50 = {
							if = { limit = { NOT = { has_character_modifier = blindfold_is_removed } }
								add_character_modifier = { name = blindfold_is_removed hidden = yes }
								remove_trait = blinded_one_out_r
								add_trait = blinded_one_out_r
							}
						}
						50 = { modifier = { factor = 0 is_female = no }
							if = { limit = { has_character_modifier = blindfold_is_removed }
								remove_character_modifier = blindfold_is_removed
								remove_trait = blinded_one_out_r
								add_trait = blinded_one_out_r
							}
						}
					}
				}
			}
			any_courtier = { limit = { is_ruler = no } #    ( ).
				if = { limit = { OR = { trait = blinded AND = { trait = blinded_one_out_l trait = blinded_one_out_r } } } #   
					if = { limit = { has_global_flag = flag_blindfold_both_eyes_off NOT = { has_character_modifier = blindfold_is_removed } } #   
						add_character_modifier = { name = blindfold_is_removed hidden = yes }
						remove_trait = blinded_one_out_l
						remove_trait = blinded_one_out_r
						remove_trait = blinded
						add_trait = blinded
					}
					if = { limit = { has_global_flag = flag_blindfold_both_eyes_on has_character_modifier = blindfold_is_removed } #   
						remove_character_modifier = blindfold_is_removed
						remove_trait = blinded_one_out_l
						remove_trait = blinded_one_out_r
						remove_trait = blinded
						add_trait = blinded
					}
					if = { limit = { NOR = { has_global_flag = flag_blindfold_both_eyes_off has_global_flag = flag_blindfold_both_eyes_on } } #    
						random_list = {
							50 = {
								if = { limit = { NOT = { has_character_modifier = blindfold_is_removed } }
									add_character_modifier = { name = blindfold_is_removed hidden = yes }
									remove_trait = blinded_one_out_l
									remove_trait = blinded_one_out_r
									remove_trait = blinded
									add_trait = blinded
								}
							}
							50 = { modifier = { factor = 0 AND = { is_female = yes religion_group = muslim } }
								if = { limit = { has_character_modifier = blindfold_is_removed }
									remove_character_modifier = blindfold_is_removed
									remove_trait = blinded_one_out_l
									remove_trait = blinded_one_out_r
									remove_trait = blinded
									add_trait = blinded
								}
							}
						}
					}
					
				}
				if = { limit = { AND = { trait = blinded_one_out_l NOT = { trait = blinded_one_out_r } } } # ,   
					if = { limit = { has_global_flag = flag_blindfold_one_eye_off NOT = { has_character_modifier = blindfold_is_removed } } #   
						add_character_modifier = { name = blindfold_is_removed hidden = yes }
						remove_trait = blinded_one_out_l
						add_trait = blinded_one_out_l
					}
					if = { limit = { has_global_flag = flag_blindfold_one_eye_on has_character_modifier = blindfold_is_removed } #   
						remove_character_modifier = blindfold_is_removed
						remove_trait = blinded_one_out_l
						add_trait = blinded_one_out_l
					}
					if = { limit = { NOR = { has_global_flag = flag_blindfold_one_eye_off has_global_flag = flag_blindfold_one_eye_on } } #    
						random_list = {
							50 = {
								if = { limit = { NOT = { has_character_modifier = blindfold_is_removed } }
									add_character_modifier = { name = blindfold_is_removed hidden = yes }
									remove_trait = blinded_one_out_l
									add_trait = blinded_one_out_l
								}
							}
							50 = { modifier = { factor = 0 is_female = no }
								if = { limit = { has_character_modifier = blindfold_is_removed }
									remove_character_modifier = blindfold_is_removed
									remove_trait = blinded_one_out_l
									add_trait = blinded_one_out_l
								}
							}
						}
					}
				}
				if = { limit = { AND = { NOT = { trait = blinded_one_out_l } trait = blinded_one_out_r } } # ,   
					if = { limit = { has_global_flag = flag_blindfold_one_eye_off NOT = { has_character_modifier = blindfold_is_removed } } #   
						add_character_modifier = { name = blindfold_is_removed hidden = yes }
						remove_trait = blinded_one_out_r
						add_trait = blinded_one_out_r
					}
					if = { limit = { has_global_flag = flag_blindfold_one_eye_on has_character_modifier = blindfold_is_removed } #   
						remove_character_modifier = blindfold_is_removed
						remove_trait = blinded_one_out_r
						add_trait = blinded_one_out_r
					}
					if = { limit = { NOR = { has_global_flag = flag_blindfold_one_eye_off has_global_flag = flag_blindfold_one_eye_on } } #    
						random_list = {
							50 = {
								if = { limit = { NOT = { has_character_modifier = blindfold_is_removed } }
									add_character_modifier = { name = blindfold_is_removed hidden = yes }
									remove_trait = blinded_one_out_r
									add_trait = blinded_one_out_r
								}
							}
							50 = { modifier = { factor = 0 is_female = no }
								if = { limit = { has_character_modifier = blindfold_is_removed }
									remove_character_modifier = blindfold_is_removed
									remove_trait = blinded_one_out_r
									add_trait = blinded_one_out_r
								}
							}
						}
					}
				}
			}
			any_vassal = { limit = { is_playable = no } #  -
				if = { limit = { OR = { trait = blinded AND = { trait = blinded_one_out_l trait = blinded_one_out_r } } } #   
					if = { limit = { has_global_flag = flag_blindfold_both_eyes_off NOT = { has_character_modifier = blindfold_is_removed } } #   
						add_character_modifier = { name = blindfold_is_removed hidden = yes }
						remove_trait = blinded_one_out_l
						remove_trait = blinded_one_out_r
						remove_trait = blinded
						add_trait = blinded
					}
					if = { limit = { has_global_flag = flag_blindfold_both_eyes_on has_character_modifier = blindfold_is_removed } #   
						remove_character_modifier = blindfold_is_removed
						remove_trait = blinded_one_out_l
						remove_trait = blinded_one_out_r
						remove_trait = blinded
						add_trait = blinded
					}
					if = { limit = { NOR = { has_global_flag = flag_blindfold_both_eyes_off has_global_flag = flag_blindfold_both_eyes_on } } #    
						random_list = {
							50 = {
								if = { limit = { NOT = { has_character_modifier = blindfold_is_removed } }
									add_character_modifier = { name = blindfold_is_removed hidden = yes }
									remove_trait = blinded_one_out_l
									remove_trait = blinded_one_out_r
									remove_trait = blinded
									add_trait = blinded
								}
							}
							50 = { modifier = { factor = 0 AND = { is_female = yes religion_group = muslim } }
								if = { limit = { has_character_modifier = blindfold_is_removed }
									remove_character_modifier = blindfold_is_removed
									remove_trait = blinded_one_out_l
									remove_trait = blinded_one_out_r
									remove_trait = blinded
									add_trait = blinded
								}
							}
						}
					}
					
				}
				if = { limit = { AND = { trait = blinded_one_out_l NOT = { trait = blinded_one_out_r } } } # ,   
					if = { limit = { has_global_flag = flag_blindfold_one_eye_off NOT = { has_character_modifier = blindfold_is_removed } } #   
						add_character_modifier = { name = blindfold_is_removed hidden = yes }
						remove_trait = blinded_one_out_l
						add_trait = blinded_one_out_l
					}
					if = { limit = { has_global_flag = flag_blindfold_one_eye_on has_character_modifier = blindfold_is_removed } #   
						remove_character_modifier = blindfold_is_removed
						remove_trait = blinded_one_out_l
						add_trait = blinded_one_out_l
					}
					if = { limit = { NOR = { has_global_flag = flag_blindfold_one_eye_off has_global_flag = flag_blindfold_one_eye_on } } #    
						random_list = {
							50 = {
								if = { limit = { NOT = { has_character_modifier = blindfold_is_removed } }
									add_character_modifier = { name = blindfold_is_removed hidden = yes }
									remove_trait = blinded_one_out_l
									add_trait = blinded_one_out_l
								}
							}
							50 = { modifier = { factor = 0 is_female = no }
								if = { limit = { has_character_modifier = blindfold_is_removed }
									remove_character_modifier = blindfold_is_removed
									remove_trait = blinded_one_out_l
									add_trait = blinded_one_out_l
								}
							}
						}
					}
				}
				if = { limit = { AND = { NOT = { trait = blinded_one_out_l } trait = blinded_one_out_r } } # ,   
					if = { limit = { has_global_flag = flag_blindfold_one_eye_off NOT = { has_character_modifier = blindfold_is_removed } } #   
						add_character_modifier = { name = blindfold_is_removed hidden = yes }
						remove_trait = blinded_one_out_r
						add_trait = blinded_one_out_r
					}
					if = { limit = { has_global_flag = flag_blindfold_one_eye_on has_character_modifier = blindfold_is_removed } #   
						remove_character_modifier = blindfold_is_removed
						remove_trait = blinded_one_out_r
						add_trait = blinded_one_out_r
					}
					if = { limit = { NOR = { has_global_flag = flag_blindfold_one_eye_off has_global_flag = flag_blindfold_one_eye_on } } #    
						random_list = {
							50 = {
								if = { limit = { NOT = { has_character_modifier = blindfold_is_removed } }
									add_character_modifier = { name = blindfold_is_removed hidden = yes }
									remove_trait = blinded_one_out_r
									add_trait = blinded_one_out_r
								}
							}
							50 = { modifier = { factor = 0 is_female = no }
								if = { limit = { has_character_modifier = blindfold_is_removed }
									remove_character_modifier = blindfold_is_removed
									remove_trait = blinded_one_out_r
									add_trait = blinded_one_out_r
								}
							}
						}
					}
				}
				any_courtier = { limit = { NOT = { character = PREV } } #      
					if = { limit = { OR = { trait = blinded AND = { trait = blinded_one_out_l trait = blinded_one_out_r } } } #   
						if = { limit = { has_global_flag = flag_blindfold_both_eyes_off NOT = { has_character_modifier = blindfold_is_removed } } #   
							add_character_modifier = { name = blindfold_is_removed hidden = yes }
							remove_trait = blinded_one_out_l
							remove_trait = blinded_one_out_r
							remove_trait = blinded
							add_trait = blinded
						}
						if = { limit = { has_global_flag = flag_blindfold_both_eyes_on has_character_modifier = blindfold_is_removed } #   
							remove_character_modifier = blindfold_is_removed
							remove_trait = blinded_one_out_l
							remove_trait = blinded_one_out_r
							remove_trait = blinded
							add_trait = blinded
						}
						if = { limit = { NOR = { has_global_flag = flag_blindfold_both_eyes_off has_global_flag = flag_blindfold_both_eyes_on } } #    
							random_list = {
								50 = {
									if = { limit = { NOT = { has_character_modifier = blindfold_is_removed } }
										add_character_modifier = { name = blindfold_is_removed hidden = yes }
										remove_trait = blinded_one_out_l
										remove_trait = blinded_one_out_r
										remove_trait = blinded
										add_trait = blinded
									}
								}
								50 = { modifier = { factor = 0 AND = { is_female = yes religion_group = muslim } }
									if = { limit = { has_character_modifier = blindfold_is_removed }
										remove_character_modifier = blindfold_is_removed
										remove_trait = blinded_one_out_l
										remove_trait = blinded_one_out_r
										remove_trait = blinded
										add_trait = blinded
									}
								}
							}
						}
						
					}
					if = { limit = { AND = { trait = blinded_one_out_l NOT = { trait = blinded_one_out_r } } } # ,   
						if = { limit = { has_global_flag = flag_blindfold_one_eye_off NOT = { has_character_modifier = blindfold_is_removed } } #   
							add_character_modifier = { name = blindfold_is_removed hidden = yes }
							remove_trait = blinded_one_out_l
							add_trait = blinded_one_out_l
						}
						if = { limit = { has_global_flag = flag_blindfold_one_eye_on has_character_modifier = blindfold_is_removed } #   
							remove_character_modifier = blindfold_is_removed
							remove_trait = blinded_one_out_l
							add_trait = blinded_one_out_l
						}
						if = { limit = { NOR = { has_global_flag = flag_blindfold_one_eye_off has_global_flag = flag_blindfold_one_eye_on } } #    
							random_list = {
								50 = {
									if = { limit = { NOT = { has_character_modifier = blindfold_is_removed } }
										add_character_modifier = { name = blindfold_is_removed hidden = yes }
										remove_trait = blinded_one_out_l
										add_trait = blinded_one_out_l
									}
								}
								50 = { modifier = { factor = 0 is_female = no }
									if = { limit = { has_character_modifier = blindfold_is_removed }
										remove_character_modifier = blindfold_is_removed
										remove_trait = blinded_one_out_l
										add_trait = blinded_one_out_l
									}
								}
							}
						}
					}
					if = { limit = { AND = { NOT = { trait = blinded_one_out_l } trait = blinded_one_out_r } } # ,   
						if = { limit = { has_global_flag = flag_blindfold_one_eye_off NOT = { has_character_modifier = blindfold_is_removed } } #   
							add_character_modifier = { name = blindfold_is_removed hidden = yes }
							remove_trait = blinded_one_out_r
							add_trait = blinded_one_out_r
						}
						if = { limit = { has_global_flag = flag_blindfold_one_eye_on has_character_modifier = blindfold_is_removed } #   
							remove_character_modifier = blindfold_is_removed
							remove_trait = blinded_one_out_r
							add_trait = blinded_one_out_r
						}
						if = { limit = { NOR = { has_global_flag = flag_blindfold_one_eye_off has_global_flag = flag_blindfold_one_eye_on } } #    
							random_list = {
								50 = {
									if = { limit = { NOT = { has_character_modifier = blindfold_is_removed } }
										add_character_modifier = { name = blindfold_is_removed hidden = yes }
										remove_trait = blinded_one_out_r
										add_trait = blinded_one_out_r
									}
								}
								50 = { modifier = { factor = 0 is_female = no }
									if = { limit = { has_character_modifier = blindfold_is_removed }
										remove_character_modifier = blindfold_is_removed
										remove_trait = blinded_one_out_r
										add_trait = blinded_one_out_r
									}
								}
							}
						}
					}
				}
			}
		}
		ROOT = { #       ,     playable 
			if = { limit = { OR = { trait = blinded AND = { trait = blinded_one_out_l trait = blinded_one_out_r } } } #   
				if = { limit = { has_global_flag = flag_blindfold_both_eyes_off NOT = { has_character_modifier = blindfold_is_removed } } #   
					add_character_modifier = { name = blindfold_is_removed hidden = yes }
					remove_trait = blinded_one_out_l
					remove_trait = blinded_one_out_r
					remove_trait = blinded
					add_trait = blinded
				}
				if = { limit = { has_global_flag = flag_blindfold_both_eyes_on has_character_modifier = blindfold_is_removed } #   
					remove_character_modifier = blindfold_is_removed
					remove_trait = blinded_one_out_l
					remove_trait = blinded_one_out_r
					remove_trait = blinded
					add_trait = blinded
				}
				if = { limit = { NOR = { has_global_flag = flag_blindfold_both_eyes_off has_global_flag = flag_blindfold_both_eyes_on } } #    
					random_list = {
						50 = {
							if = { limit = { NOT = { has_character_modifier = blindfold_is_removed } }
								add_character_modifier = { name = blindfold_is_removed hidden = yes }
								remove_trait = blinded_one_out_l
								remove_trait = blinded_one_out_r
								remove_trait = blinded
								add_trait = blinded
							}
						}
						50 = { modifier = { factor = 0 AND = { is_female = yes religion_group = muslim } }
							if = { limit = { has_character_modifier = blindfold_is_removed }
								remove_character_modifier = blindfold_is_removed
								remove_trait = blinded_one_out_l
								remove_trait = blinded_one_out_r
								remove_trait = blinded
								add_trait = blinded
							}
						}
					}
				}
				
			}
			if = { limit = { AND = { trait = blinded_one_out_l NOT = { trait = blinded_one_out_r } } } # ,   
				if = { limit = { has_global_flag = flag_blindfold_one_eye_off NOT = { has_character_modifier = blindfold_is_removed } } #   
					add_character_modifier = { name = blindfold_is_removed hidden = yes }
					remove_trait = blinded_one_out_l
					add_trait = blinded_one_out_l
				}
				if = { limit = { has_global_flag = flag_blindfold_one_eye_on has_character_modifier = blindfold_is_removed } #   
					remove_character_modifier = blindfold_is_removed
					remove_trait = blinded_one_out_l
					add_trait = blinded_one_out_l
				}
				if = { limit = { NOR = { has_global_flag = flag_blindfold_one_eye_off has_global_flag = flag_blindfold_one_eye_on } } #    
					random_list = {
						50 = {
							if = { limit = { NOT = { has_character_modifier = blindfold_is_removed } }
								add_character_modifier = { name = blindfold_is_removed hidden = yes }
								remove_trait = blinded_one_out_l
								add_trait = blinded_one_out_l
							}
						}
						50 = { modifier = { factor = 0 is_female = no }
							if = { limit = { has_character_modifier = blindfold_is_removed }
								remove_character_modifier = blindfold_is_removed
								remove_trait = blinded_one_out_l
								add_trait = blinded_one_out_l
							}
						}
					}
				}
			}
			if = { limit = { AND = { NOT = { trait = blinded_one_out_l } trait = blinded_one_out_r } } # ,   
				if = { limit = { has_global_flag = flag_blindfold_one_eye_off NOT = { has_character_modifier = blindfold_is_removed } } #   
					add_character_modifier = { name = blindfold_is_removed hidden = yes }
					remove_trait = blinded_one_out_r
					add_trait = blinded_one_out_r
				}
				if = { limit = { has_global_flag = flag_blindfold_one_eye_on has_character_modifier = blindfold_is_removed } #   
					remove_character_modifier = blindfold_is_removed
					remove_trait = blinded_one_out_r
					add_trait = blinded_one_out_r
				}
				if = { limit = { NOR = { has_global_flag = flag_blindfold_one_eye_off has_global_flag = flag_blindfold_one_eye_on } } #    
					random_list = {
						50 = {
							if = { limit = { NOT = { has_character_modifier = blindfold_is_removed } }
								add_character_modifier = { name = blindfold_is_removed hidden = yes }
								remove_trait = blinded_one_out_r
								add_trait = blinded_one_out_r
							}
						}
						50 = { modifier = { factor = 0 is_female = no }
							if = { limit = { has_character_modifier = blindfold_is_removed }
								remove_character_modifier = blindfold_is_removed
								remove_trait = blinded_one_out_r
								add_trait = blinded_one_out_r
							}
						}
					}
				}
			}
			any_courtier = { limit = { is_ruler = no } #    ( ).
				if = { limit = { OR = { trait = blinded AND = { trait = blinded_one_out_l trait = blinded_one_out_r } } } #   
					if = { limit = { has_global_flag = flag_blindfold_both_eyes_off NOT = { has_character_modifier = blindfold_is_removed } } #   
						add_character_modifier = { name = blindfold_is_removed hidden = yes }
						remove_trait = blinded_one_out_l
						remove_trait = blinded_one_out_r
						remove_trait = blinded
						add_trait = blinded
					}
					if = { limit = { has_global_flag = flag_blindfold_both_eyes_on has_character_modifier = blindfold_is_removed } #   
						remove_character_modifier = blindfold_is_removed
						remove_trait = blinded_one_out_l
						remove_trait = blinded_one_out_r
						remove_trait = blinded
						add_trait = blinded
					}
					if = { limit = { NOR = { has_global_flag = flag_blindfold_both_eyes_off has_global_flag = flag_blindfold_both_eyes_on } } #    
						random_list = {
							50 = {
								if = { limit = { NOT = { has_character_modifier = blindfold_is_removed } }
									add_character_modifier = { name = blindfold_is_removed hidden = yes }
									remove_trait = blinded_one_out_l
									remove_trait = blinded_one_out_r
									remove_trait = blinded
									add_trait = blinded
								}
							}
							50 = { modifier = { factor = 0 AND = { is_female = yes religion_group = muslim } }
								if = { limit = { has_character_modifier = blindfold_is_removed }
									remove_character_modifier = blindfold_is_removed
									remove_trait = blinded_one_out_l
									remove_trait = blinded_one_out_r
									remove_trait = blinded
									add_trait = blinded
								}
							}
						}
					}
					
				}
				if = { limit = { AND = { trait = blinded_one_out_l NOT = { trait = blinded_one_out_r } } } # ,   
					if = { limit = { has_global_flag = flag_blindfold_one_eye_off NOT = { has_character_modifier = blindfold_is_removed } } #   
						add_character_modifier = { name = blindfold_is_removed hidden = yes }
						remove_trait = blinded_one_out_l
						add_trait = blinded_one_out_l
					}
					if = { limit = { has_global_flag = flag_blindfold_one_eye_on has_character_modifier = blindfold_is_removed } #   
						remove_character_modifier = blindfold_is_removed
						remove_trait = blinded_one_out_l
						add_trait = blinded_one_out_l
					}
					if = { limit = { NOR = { has_global_flag = flag_blindfold_one_eye_off has_global_flag = flag_blindfold_one_eye_on } } #    
						random_list = {
							50 = {
								if = { limit = { NOT = { has_character_modifier = blindfold_is_removed } }
									add_character_modifier = { name = blindfold_is_removed hidden = yes }
									remove_trait = blinded_one_out_l
									add_trait = blinded_one_out_l
								}
							}
							50 = { modifier = { factor = 0 is_female = no }
								if = { limit = { has_character_modifier = blindfold_is_removed }
									remove_character_modifier = blindfold_is_removed
									remove_trait = blinded_one_out_l
									add_trait = blinded_one_out_l
								}
							}
						}
					}
				}
				if = { limit = { AND = { NOT = { trait = blinded_one_out_l } trait = blinded_one_out_r } } # ,   
					if = { limit = { has_global_flag = flag_blindfold_one_eye_off NOT = { has_character_modifier = blindfold_is_removed } } #   
						add_character_modifier = { name = blindfold_is_removed hidden = yes }
						remove_trait = blinded_one_out_r
						add_trait = blinded_one_out_r
					}
					if = { limit = { has_global_flag = flag_blindfold_one_eye_on has_character_modifier = blindfold_is_removed } #   
						remove_character_modifier = blindfold_is_removed
						remove_trait = blinded_one_out_r
						add_trait = blinded_one_out_r
					}
					if = { limit = { NOR = { has_global_flag = flag_blindfold_one_eye_off has_global_flag = flag_blindfold_one_eye_on } } #    
						random_list = {
							50 = {
								if = { limit = { NOT = { has_character_modifier = blindfold_is_removed } }
									add_character_modifier = { name = blindfold_is_removed hidden = yes }
									remove_trait = blinded_one_out_r
									add_trait = blinded_one_out_r
								}
							}
							50 = { modifier = { factor = 0 is_female = no }
								if = { limit = { has_character_modifier = blindfold_is_removed }
									remove_character_modifier = blindfold_is_removed
									remove_trait = blinded_one_out_r
									add_trait = blinded_one_out_r
								}
							}
						}
					}
				}
			}
			any_vassal = { limit = { is_playable = no } #  -
				if = { limit = { OR = { trait = blinded AND = { trait = blinded_one_out_l trait = blinded_one_out_r } } } #   
					if = { limit = { has_global_flag = flag_blindfold_both_eyes_off NOT = { has_character_modifier = blindfold_is_removed } } #   
						add_character_modifier = { name = blindfold_is_removed hidden = yes }
						remove_trait = blinded_one_out_l
						remove_trait = blinded_one_out_r
						remove_trait = blinded
						add_trait = blinded
					}
					if = { limit = { has_global_flag = flag_blindfold_both_eyes_on has_character_modifier = blindfold_is_removed } #   
						remove_character_modifier = blindfold_is_removed
						remove_trait = blinded_one_out_l
						remove_trait = blinded_one_out_r
						remove_trait = blinded
						add_trait = blinded
					}
					if = { limit = { NOR = { has_global_flag = flag_blindfold_both_eyes_off has_global_flag = flag_blindfold_both_eyes_on } } #    
						random_list = {
							50 = {
								if = { limit = { NOT = { has_character_modifier = blindfold_is_removed } }
									add_character_modifier = { name = blindfold_is_removed hidden = yes }
									remove_trait = blinded_one_out_l
									remove_trait = blinded_one_out_r
									remove_trait = blinded
									add_trait = blinded
								}
							}
							50 = { modifier = { factor = 0 AND = { is_female = yes religion_group = muslim } }
								if = { limit = { has_character_modifier = blindfold_is_removed }
									remove_character_modifier = blindfold_is_removed
									remove_trait = blinded_one_out_l
									remove_trait = blinded_one_out_r
									remove_trait = blinded
									add_trait = blinded
								}
							}
						}
					}
					
				}
				if = { limit = { AND = { trait = blinded_one_out_l NOT = { trait = blinded_one_out_r } } } # ,   
					if = { limit = { has_global_flag = flag_blindfold_one_eye_off NOT = { has_character_modifier = blindfold_is_removed } } #   
						add_character_modifier = { name = blindfold_is_removed hidden = yes }
						remove_trait = blinded_one_out_l
						add_trait = blinded_one_out_l
					}
					if = { limit = { has_global_flag = flag_blindfold_one_eye_on has_character_modifier = blindfold_is_removed } #   
						remove_character_modifier = blindfold_is_removed
						remove_trait = blinded_one_out_l
						add_trait = blinded_one_out_l
					}
					if = { limit = { NOR = { has_global_flag = flag_blindfold_one_eye_off has_global_flag = flag_blindfold_one_eye_on } } #    
						random_list = {
							50 = {
								if = { limit = { NOT = { has_character_modifier = blindfold_is_removed } }
									add_character_modifier = { name = blindfold_is_removed hidden = yes }
									remove_trait = blinded_one_out_l
									add_trait = blinded_one_out_l
								}
							}
							50 = { modifier = { factor = 0 is_female = no }
								if = { limit = { has_character_modifier = blindfold_is_removed }
									remove_character_modifier = blindfold_is_removed
									remove_trait = blinded_one_out_l
									add_trait = blinded_one_out_l
								}
							}
						}
					}
				}
				if = { limit = { AND = { NOT = { trait = blinded_one_out_l } trait = blinded_one_out_r } } # ,   
					if = { limit = { has_global_flag = flag_blindfold_one_eye_off NOT = { has_character_modifier = blindfold_is_removed } } #   
						add_character_modifier = { name = blindfold_is_removed hidden = yes }
						remove_trait = blinded_one_out_r
						add_trait = blinded_one_out_r
					}
					if = { limit = { has_global_flag = flag_blindfold_one_eye_on has_character_modifier = blindfold_is_removed } #   
						remove_character_modifier = blindfold_is_removed
						remove_trait = blinded_one_out_r
						add_trait = blinded_one_out_r
					}
					if = { limit = { NOR = { has_global_flag = flag_blindfold_one_eye_off has_global_flag = flag_blindfold_one_eye_on } } #    
						random_list = {
							50 = {
								if = { limit = { NOT = { has_character_modifier = blindfold_is_removed } }
									add_character_modifier = { name = blindfold_is_removed hidden = yes }
									remove_trait = blinded_one_out_r
									add_trait = blinded_one_out_r
								}
							}
							50 = { modifier = { factor = 0 is_female = no }
								if = { limit = { has_character_modifier = blindfold_is_removed }
									remove_character_modifier = blindfold_is_removed
									remove_trait = blinded_one_out_r
									add_trait = blinded_one_out_r
								}
							}
						}
					}
				}
				any_courtier = { limit = { NOT = { character = PREV } } #      
					if = { limit = { OR = { trait = blinded AND = { trait = blinded_one_out_l trait = blinded_one_out_r } } } #   
						if = { limit = { has_global_flag = flag_blindfold_both_eyes_off NOT = { has_character_modifier = blindfold_is_removed } } #   
							add_character_modifier = { name = blindfold_is_removed hidden = yes }
							remove_trait = blinded_one_out_l
							remove_trait = blinded_one_out_r
							remove_trait = blinded
							add_trait = blinded
						}
						if = { limit = { has_global_flag = flag_blindfold_both_eyes_on has_character_modifier = blindfold_is_removed } #   
							remove_character_modifier = blindfold_is_removed
							remove_trait = blinded_one_out_l
							remove_trait = blinded_one_out_r
							remove_trait = blinded
							add_trait = blinded
						}
						if = { limit = { NOR = { has_global_flag = flag_blindfold_both_eyes_off has_global_flag = flag_blindfold_both_eyes_on } } #    
							random_list = {
								50 = {
									if = { limit = { NOT = { has_character_modifier = blindfold_is_removed } }
										add_character_modifier = { name = blindfold_is_removed hidden = yes }
										remove_trait = blinded_one_out_l
										remove_trait = blinded_one_out_r
										remove_trait = blinded
										add_trait = blinded
									}
								}
								50 = { modifier = { factor = 0 AND = { is_female = yes religion_group = muslim } }
									if = { limit = { has_character_modifier = blindfold_is_removed }
										remove_character_modifier = blindfold_is_removed
										remove_trait = blinded_one_out_l
										remove_trait = blinded_one_out_r
										remove_trait = blinded
										add_trait = blinded
									}
								}
							}
						}
						
					}
					if = { limit = { AND = { trait = blinded_one_out_l NOT = { trait = blinded_one_out_r } } } # ,   
						if = { limit = { has_global_flag = flag_blindfold_one_eye_off NOT = { has_character_modifier = blindfold_is_removed } } #   
							add_character_modifier = { name = blindfold_is_removed hidden = yes }
							remove_trait = blinded_one_out_l
							add_trait = blinded_one_out_l
						}
						if = { limit = { has_global_flag = flag_blindfold_one_eye_on has_character_modifier = blindfold_is_removed } #   
							remove_character_modifier = blindfold_is_removed
							remove_trait = blinded_one_out_l
							add_trait = blinded_one_out_l
						}
						if = { limit = { NOR = { has_global_flag = flag_blindfold_one_eye_off has_global_flag = flag_blindfold_one_eye_on } } #    
							random_list = {
								50 = {
									if = { limit = { NOT = { has_character_modifier = blindfold_is_removed } }
										add_character_modifier = { name = blindfold_is_removed hidden = yes }
										remove_trait = blinded_one_out_l
										add_trait = blinded_one_out_l
									}
								}
								50 = { modifier = { factor = 0 is_female = no }
									if = { limit = { has_character_modifier = blindfold_is_removed }
										remove_character_modifier = blindfold_is_removed
										remove_trait = blinded_one_out_l
										add_trait = blinded_one_out_l
									}
								}
							}
						}
					}
					if = { limit = { AND = { NOT = { trait = blinded_one_out_l } trait = blinded_one_out_r } } # ,   
						if = { limit = { has_global_flag = flag_blindfold_one_eye_off NOT = { has_character_modifier = blindfold_is_removed } } #   
							add_character_modifier = { name = blindfold_is_removed hidden = yes }
							remove_trait = blinded_one_out_r
							add_trait = blinded_one_out_r
						}
						if = { limit = { has_global_flag = flag_blindfold_one_eye_on has_character_modifier = blindfold_is_removed } #   
							remove_character_modifier = blindfold_is_removed
							remove_trait = blinded_one_out_r
							add_trait = blinded_one_out_r
						}
						if = { limit = { NOR = { has_global_flag = flag_blindfold_one_eye_off has_global_flag = flag_blindfold_one_eye_on } } #    
							random_list = {
								50 = {
									if = { limit = { NOT = { has_character_modifier = blindfold_is_removed } }
										add_character_modifier = { name = blindfold_is_removed hidden = yes }
										remove_trait = blinded_one_out_r
										add_trait = blinded_one_out_r
									}
								}
								50 = { modifier = { factor = 0 is_female = no }
									if = { limit = { has_character_modifier = blindfold_is_removed }
										remove_character_modifier = blindfold_is_removed
										remove_trait = blinded_one_out_r
										add_trait = blinded_one_out_r
									}
								}
							}
						}
					}
				}
			}
		}
	}
	option = { name = OK } #      .
	# ,       (    immediate),   ""  "" "",
	#          .
}
